package guoanmaker.operator.business.repository;

import guoanmaker.operator.business.model.OperatorHotwords;
import guoanmaker.operator.business.model.OperatorRoundPhoto;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

/**
 *  
 *
 * @author huZhaoyu 
 * @ClassName: OperatorRoundPhotoRepository
 * @Description: 轮播图Repository
 * @date 2017/6/28
 */
public interface OperatorRoundPhotoRepository extends JpaRepository<OperatorRoundPhoto, String>, JpaSpecificationExecutor<OperatorRoundPhoto> {
	@Query("select u from OperatorRoundPhoto u  where u.cityCode=:cityCode")
 public List<OperatorRoundPhoto> findBycityCode(@Param("cityCode") String cityCode);

}